package com.lh.api.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lh.api.vo.AfterSaleDetailVo;
import com.lh.api.vo.AfterSaleListVo;
import com.lh.common.entity.admin.OrderAfterSale;
import com.lh.common.enums.AfterStatusEnum;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderAfterSaleMapper extends BaseMapper<OrderAfterSale> {
    List<AfterSaleListVo> getlist(Map<String, Object> params);

    AfterSaleDetailVo getAfterSaleDetail(String afterSaleId, Long userId);

    void updateByKey(OrderAfterSale orderAfterSaleUp);

    void updateAfterSaleOrder(@Param("afterSaleId") String afterSaleId,@Param("status") AfterStatusEnum afterStatusEnum);

    OrderAfterSale selectByItem(String orderItem);
}
